package com.hl.service;

import com.hl.mapper.CourseFavoriteMapper;
import com.hl.pojo.Coursefavorites;
import com.hl.pojo.Mycoursefavorites;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CourseFavoriteServiceImpl implements CourseFavoriteService{
    @Autowired
    private CourseFavoriteMapper courseFavoriteMapper;
    @Override
    public List<Mycoursefavorites> getCourseFavoriteNoPaid(Integer id) {
        return courseFavoriteMapper.getCourseFavoriteNoPaid(id);
    }

    @Override
    public List<Mycoursefavorites> getCourseFavoriteIsPaid(Integer id) {
        return courseFavoriteMapper.getCourseFavoriteIsPaid(id);
    }

    @Override
    public List<Mycoursefavorites> SelectCourseFavoriteListAll() {
        return courseFavoriteMapper.SelectCourseFavoriteListAll();
    }

    @Override
    public int UpdateCourseFavoriteList(Mycoursefavorites mycoursefavorites) {
        return courseFavoriteMapper.UpdateCourseFavoriteList(mycoursefavorites);
    }
}
